#ifndef CAR_POWER_RANGE_OWNERSHIP_H
#define CAR_POWER_RANGE_OWNERSHIP_H

#include "car_power_range_ownership_struct_csv.hpp"
#include "file_list.hpp"

class car_power_range_ownership
{
  public:
	inline virtual ~car_power_range_ownership() { };

  private:
};



// implementation for csv files

class car_power_range_ownership_csv: public car_power_range_ownership
{
  public:
	inline car_power_range_ownership_csv(char* filename): file(filename)
	{ }

	inline car_power_range_ownership_csv(std::string filename): file(filename)
	{ }

	inline car_power_range_ownership_csv(): file(file_list::car_power_range_and_ownership_filename())
	{}

	static int find_power_range_ownership_id(int _power_range_id, int _ownership_id);

  protected:

	static car_power_range_ownership_struct_csv const find(int _id);

	static car_power_range_ownership_struct_csv const find(int _car_power_range_id, int _ownership_id);

  private:
	std::string file;
};

#endif
